package com.ruoyi.combat.domain.neo4j;

import lombok.Data;
import org.springframework.data.neo4j.core.schema.*;

import java.util.Set;

@Data
@Node("Ip")
public class IpNode {
    @Id
    @Property(name = "_id")
    private Long id;

    @Property(name = "Ip")
    private String address;

    @Relationship(type = "BELONGS_TO", direction = Relationship.Direction.OUTGOING)
    private CityNode city;

    @Relationship(type = "BELONGS_TO_ORG_REVERSE", direction = Relationship.Direction.OUTGOING)
    private OrgNode org;

    @Relationship(type = "DOMAIN_IS", direction = Relationship.Direction.OUTGOING)
    private DomainNode domain;

    @Relationship(type = "BELONGS_TO", direction = Relationship.Direction.OUTGOING)
    private Set<IpcNode> ipc;

    @Relationship(type = "FORECAST_BELONGS_TO", direction = Relationship.Direction.OUTGOING)
    private ForecastOrgNode forecastOrg;
}